package cn.tedu.autoshow.passport.service;

import cn.tedu.autoshow.commons.pojo.vo.PageData;
import cn.tedu.autoshow.passport.pojo.param.PermissionAddNewParam;
import cn.tedu.autoshow.passport.pojo.param.PermissionUpdateParam;
import cn.tedu.autoshow.passport.pojo.param.RoleAddNewParam;
import cn.tedu.autoshow.passport.pojo.param.RoleUpdateParam;
import cn.tedu.autoshow.passport.pojo.vo.PermissionListItemVO;
import cn.tedu.autoshow.passport.pojo.vo.PermissionStandardVO;
import cn.tedu.autoshow.passport.pojo.vo.RoleListItemVO;
import cn.tedu.autoshow.passport.pojo.vo.RoleStandardVO;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface IPermissionService {

    void addNew(PermissionAddNewParam permissionAddNewParam);

    void deleteById(Long id);

    void updateInfoById(Long id, PermissionUpdateParam permissionUpdateParam);

    PermissionStandardVO getStandardById(Long id);

    PageData<PermissionListItemVO> list(Integer pageNum);

    PageData<PermissionListItemVO> list(Integer pageNum, Integer pageSize);

}
